#include "Circle.h"
#include "Tranigle.h"
#include "createCircleFactory.h"
#include "createTranigleFactory.h"
using std::endl;
using std::cout;
void func(Figure * fi)
{
    fi->display();
    cout << fi->getArea() << endl;
}
int main(int argc, char *argv[])
{

    createCircleFactory tf;
    func(tf.createFigure());
    createTranigleFactory cf;
    func(cf.createFigure());

        
    std::cout << "Hello world" << std::endl;
    return 0;
}

